home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12907 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  33 lines

  1. Newsgroups: comp.lang.c++
  2. Path: novice.uwaterloo.ca!news
  3. From: Layi Oshinowo <layi@real.uwaterloo.ca>
  4. Subject: Q:  WSAMPRSI, Profiling a program
  5. Sender: news@novice.uwaterloo.ca (Mr. News)
  6. Message-ID: <31527A84.41C6@real.uwaterloo.ca>
  7. Date: Fri, 22 Mar 1996 10:01:40 GMT
  8. Content-Transfer-Encoding: 7bit
  9. Content-Type: text/plain; charset=us-ascii
  10. Nntp-Posting-Host: real.uwaterloo.ca
  11. Mime-Version: 1.0
  12. X-Mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP22)
  13. Organization: University of Waterloo
  14.  
  15. Can anyone tell me why my code apparently runs faster when I sample
  16. it (using WATCOM's WSAMPRSI)?
  17.  
  18. I have my program spit out the elapsed time at the end of its 
  19. execution.
  20. When i run main.exe on a particular mechanism, it takes about 10 
  21. seconds.  However, when I run it through the sampler (wsamprsi 
  22. main), it takes about 7.5 seconds.
  23.  
  24. I don't know why this would happen...anyone?
  25.  
  26. Thanks in advance,
  27. -- 
  28. +---------------------------------------------------------------+
  29. | Layi Oshinowo                            |
  30. | Email:  layi@real.uwaterloo.ca                       |
  31. | WWW  :  http://real.uwaterloo.ca/~layi/layi.html        |
  32. +---------------------------------------------------------------+
  33.